package com.flick.vo.payment;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.flick.annotation.IdName;
import com.flick.annotation.JoinPo;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Map;

@Getter
@Setter
public class OrderVo implements Serializable {

    private String id;

    private String orderNo;

    private Float price;

    @IdName
    private Map user;

    @JoinPo("user.name")
    private String userName;

    @JoinPo("user.group.createTime")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp groupCreateTime;
}
